import Vue from "vue";
import App from "./App.vue";
//导入vue-router组件
import axios from "axios";
import "./styles/reset.css";
import "@/mobile/flexible";
import router from "@/router/index";
Vue.config.productionTip = false;

// 引入vant组件
import { Tabbar, TabbarItem } from "vant";
// 底部
Vue.use(Tabbar);
Vue.use(TabbarItem);
import { NavBar } from "vant";
// 头部
Vue.use(NavBar);
// 布局
import { Col, Row } from "vant";
Vue.use(Col);
Vue.use(Row);
//图片组件
import { Image as VanImage } from "vant";
Vue.use(VanImage);
// 单元格
import { Cell, CellGroup } from "vant";
Vue.use(Cell);
Vue.use(CellGroup);
// 字体图标
import { Icon } from "vant";
Vue.use(Icon);
// 搜索模块
import { Search } from "vant";
// 加载更多
import { List } from "vant";
Vue.use(List);
Vue.use(Search);
// 注册路由到Vue实例
Vue.prototype.$axios = axios;
new Vue({
  router,
  render: h => h(App),
}).$mount("#app");
